home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / utils / console / svgatext.3 / svgatext / SVGATextMode-1.3 / contrib / probe_clocks / probeclk.sh next >
Encoding:
Linux/UNIX/POSIX Shell Script  |  1995-06-11  |  1.4 KB  |  44 lines

  1. #!/bin/sh
  2. # This script will do some sort of clock probe, like the one the XFREE86
  3. # server does. The difference is that this uses the (more reliable) clockprobe
  4. # from SVGAtextMode instead of the probe from X (see
  5. # doc/README.ET4000.AltClockSelect for more information on this subject)
  6. # It is much slower than the XFREE clock probe! But it probes the clocks AS
  7. # SVGATextMode SEES THEM. So if you suspect the clock ordering in SVGAtextMode
  8. # is different than that from the XFREE code, or if you don't know your pixel
  9. # clocks, this script will tell you what they are.
  10. # If necessary, adjust the script to reflect a different number of clocks (16
  11. # is most common)
  12. #
  13. # WARNING: Don't use this on cards with a clock chip (including Cirrus)
  14. #          They will just create the fake clocks (20, 21, 22, ...) for you!
  15. #
  16.  
  17. LOG=/tmp/clock_probe.out
  18.  
  19. echo 'This script will probe your clocks.'
  20. echo 'This is inherently DANGEROUS to use.'
  21. echo 'Press <CTRL-C> if you feel insecure!'
  22. echo 'Or <Enter> when you feel like taking a risk :-)'
  23.  
  24. read bummer
  25.  
  26. echo Clock probing output | tee $LOG
  27. echo | tee -a $LOG
  28.  
  29. for i in  20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35
  30. do
  31.         echo | tee -a $LOG
  32.     echo mode: $i | tee -a $LOG
  33.     ../../SVGATextMode -t ./TextConfig_probe $i  2>&1 | tee -a $LOG
  34.     ../../grabmode 2>&1 | tee -a $LOG 
  35. done
  36. echo -en '\a'; sleep 1; echo -en '\a'; sleep 1 ; echo -en '\a'
  37. ../../SVGATextMode 80x25
  38.  
  39.  
  40.  
  41.